<meta charset="utf-8">

<script>
    console.log(2);
</script>
<script src="2.js"></script>
<body onload="javascript:console.log(3);">

</body>